<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: Login page ::</title>
<link href="<?php echo $template_url ?>backend/css/admin_style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $template_url ?>js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<div align="center">

<form action="" method="post" name="login">
    <fieldset class="login_system">
    
    	<div class="error" style='display: none'>Username or password is incorrect.</div>
    <legend>Login page</legend>
        <label>Username:</label><input name="username" id="username" type="text"  value="" /><br />
        <label>Password:</label><input name="password" id="password" type="password" /><br />
       <!--  <label>Code:</label><input name="captcha" type="text" value="0ebd6" />0ebd6<br /> -->
        <label class="member_f_label">&nbsp;</label>
        <input name="login_submit" id='login_submit' type="submit" style="padding: 2px; margin:3px;"  value="Login page" />
    </fieldset>
</form>
</body>
</html>

<script>
	$(function(){
		<?php if( isset($error) && $error == 1 ): ?>
		$('.error').show();
		<?php endif; ?>
		$('#login_submit').click(function(){
			$('.error').hide();
			if( $.trim($('#username').val()) == '' || $.trim($('#password').val()) == '' ){
				$('.error').show();
				return false;
			}
		});
	});
</script>
